﻿@model Hrm.Services.ClassMateDto
@{
    Layout = "~/Views/Shared/_ClassMateMobileLayout.cshtml";
}
<style>
    input[type="file"] {
        background-color: grey;
        color: white;
    }
    .width100Percent{
        width:100%;
        height: 25px;
    }
</style>
<section class="ui-container">
    <div class="ui-whitespace">
        <div class="ui-form ui-border-t">

            <div style="width:100%;height:300px;margin-top:10px;background: url('@Model.ImageUrl') no-repeat 50% 50%;background-size: contain;">
            </div>
            <form method="post" action="@Url.Action("UploadFile")" enctype="multipart/form-data">
                <div class="ui-row-flex">
                    <div class="ui-col ui-col-4">
                        <input id="upImg" class="width100Percent" name="upImg" type="file" />
                    </div>
                    <div class="ui-col">
                        <input type="submit" class="width100Percent" value="上传" />
                    </div>
                </div>
                <div class="ui-row-flex">
                    <div class="ui-col ui-txt-warning">
                        建议使用小于30k的图片，以下信息除名字和学校外其他信息可以编辑！
                    </div>
                </div>
            </form>
            <form method="post" action="@Url.Action("SelfEdit")">
                <input type="hidden" name="Id" value="@Model.Id" />
                <div class="ui-form-item ui-form-item-l ui-border-b">
                    <label class="ui-border-r">姓名</label>
                    <input type="text" name="Name" value="@Model.Name" readonly>
                </div>
                <div class="ui-form-item ui-form-item-l ui-border-b">
                    <label class="ui-border-r">电话</label>
                    <input type="text" name="Phone" value="@Model.Phone">
                </div>
                <div class="ui-form-item ui-form-item-l ui-border-b">
                    <label class="ui-border-r">QQ</label>
                    <input type="text" name="QQ" value="@Model.QQ">
                </div>
                <div class="ui-form-item ui-form-item-l ui-border-b">
                    <label class="ui-border-r">微信</label>
                    <input type="text" name="WeChat" value="@Model.WeChat">
                </div>
                <div class="ui-form-item ui-form-item-l ui-border-b">
                    <label class="ui-border-r">公司</label>
                    <input type="text" name="Company" value="@Model.Company">
                </div>
                <div class="ui-form-item ui-form-item-l ui-border-b">
                    <label class="ui-border-r">学校</label>
                    <input type="text" name="SchoolName" value="@Model.SchoolName" readonly>
                </div>
                <div class="ui-form-item ui-form-item-l ui-border-b">
                    <label class="ui-border-r">地址</label>
                    <input type="text" name="Address" value="@Model.Address">
                </div>
                <div class="ui-form-item ui-form-item-l ui-form-item-textarea ui-border-b">
                    <label>介绍</label>
                    <textarea name="Description">@Model.Description</textarea>
                </div>
                <div class="ui-btn-wrap">
                    <input type="submit" class="ui-btn ui-btn-primary" value="提交" />
                    <a href="@Url.Action("Self")" class="ui-btn ui-btn-primary">返回</a>
                </div>
            </form>
        </div>
    </div>
</section>

